package Box2D.Dynamics.Joints
{
	import Box2D.Common.b2Wrapper;
	import Box2D.Dynamics.b2Body;
	
	public class b2JointDef extends b2Wrapper
	{
		private var _bodyA:b2Body;
		private var _bodyB:b2Body;
		public function b2JointDef(wrapper:Object)
		{
			super(wrapper);
		}
		public function get cls():Class{
			throw new Error('need be realized cls()');
		}
		public function get type():int{return getInt(0)}
		
		//no used
		public function get userData():*{return getPoint(4)}
		
		public function get bodyA():b2Body{return _bodyA}
		public function set bodyA(value:b2Body):void{
			setPoint(8,value.wrapper);
			_bodyA = value;
		}
		
		public function get bodyB():b2Body{return _bodyB}
		public function set bodyB(value:b2Body):void{
			setPoint(12,value.wrapper)
			_bodyB = value;
		}
		
		public function set collideConnected(value:Boolean):void{setBoolean(16,value)}
	}
}